package com.tju.eduservice.config;

public enum EnumTest implements desc{
    SPRING(1,"spring"){
        @Override
        public void description() {
            System.out.println("夹岸桃花蘸水开");
        }
    },

    SUMMER(2,"summer"){
        @Override
        public void description() {
            System.out.println("仲夏苦夜短");
        }
    },
    FALL(3,"FALL"){
        @Override
        public void description() {
            System.out.println("正是橙黄橘绿时");
        }
    },
    WINTER(4,"WINTER"){
        @Override
        public void description() {
            System.out.println("撒盐空中差可拟");
        }
    }
    ;
    private final Integer num;
    private final String english;

    EnumTest(int num,String english){
        this.num = num;
        this.english = english;
    }

    @Override
    public String toString() {
        return "EnumTest{" +
                "num=" + num +
                ", english='" + english + '\'' +
                '}';
    }


}

interface desc{
    void description();
}
